-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[scalardb-cluster] Support Azure Marketplace #275
Conversation
{{- if eq .Values.global.platform "azure" }} | ||
azure-extensions-usage-release-identifier: {{ .Release.Name }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration is necessary to charge fees based on the number of pods.
https://learn.microsoft.com/en-us/partner-center/marketplace-offers/azure-container-technical-assets-kubernetes#make-updates-based-on-your-billing-model
{{- if eq .Values.global.platform "azure" }} | ||
image: "{{ .Values.global.azure.images.scalardbCluster.registry }}/{{ .Values.global.azure.images.scalardbCluster.image }}:{{ .Values.global.azure.images.scalardbCluster.tag }}" | ||
{{- else }} | ||
image: "{{ .Values.scalardbCluster.image.repository }}:{{ .Values.scalardbCluster.image.tag | default .Chart.AppVersion }}" | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must pull container images from ACR for Azure Marketplace instead of our public container registry.
https://learn.microsoft.com/en-us/partner-center/marketplace-offers/azure-container-technical-assets-kubernetes#update-the-helm-chart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Description
This PR updates the ScalarDB Cluster Helm Chart to support Azure Marketplace.
To list ScalarDB Cluster on the Azure Marketplace, we have to update our helm chart based on the rules of Azure Marketplace. So, I updated ScalarDB Cluster chart as follows:
global.azure.*
in thevalues.yaml
file.spec.template.spec.containers[].image
in thedeployment.yaml
file to pull the container image from ACR for Azure Marketplace.azure-extensions-usage-release-identifier
label in thedeployment.yaml
to trace pods and charge license fees by Azure.You can see what we need to list products on the Azure Marketplace in the following Azure document.
Also, to reduce the maintenance cost (avoid duplicated maintenance), I updated the current helm chart instead of creating the Azure Marketplace dedicated helm chart. To achieve that, I added the following things:
global.platform
in thevalues.yaml
file.global.platform=azure
, ScalarDB Cluster chart use or add the Azure Marketplace dedicated configurations.global.platform
configuration in both ScalarDB Cluster chart (main chart) and Envoy chart (subchart).Please take a look!
Related issues and/or PRs
I updated the Envoy chart in the following PR.
Changes made
charts/scalardb-cluster/templates/scalardb-cluster/deployment.yaml
to add the Azure Marketplace dedicated configurations.charts/scalardb-cluster/values.yaml
to add the Azure Marketplace dedicated configurations.charts/scalardb-cluster/README.md
andcharts/scalardb-cluster/values.schema.json
are updated automatically based onvalues.yaml
.Checklist
Additional notes (optional)
N/A
Release notes
N/A